cmake_minimum_required(VERSION 3.10)

project(TinyFunny-GAMES202)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(BGFX_ENV_DIRECTORY D:/dev/vendor/bgfx-env)

if(MSVC)
    add_compile_options(
        $<$<CONFIG:>:/MT> #---------|
        $<$<CONFIG:Debug>:/MTd> #---|-- Statically link the runtime libraries
        $<$<CONFIG:Release>:/MT> #--|
    )
endif()

add_subdirectory(vendor)

file(GLOB_RECURSE SRC_LIST src/*.cpp)
add_executable(${PROJECT_NAME} ${SRC_LIST})

target_link_libraries(${PROJECT_NAME} PRIVATE Vendor)